<!--
 * @Author: 小花
 * @Date: 2022-01-24 05:15:52
 * @LastEditors: 小花
 * @LastEditTime: 2022-05-14 21:02:00
 * @Description: 
-->
<template>
  <div class='home_container'>
    <el-container>
      <el-header direction="horizontal">
        <elMenu :el_menu_item="el_menu_item"></elMenu>
      </el-header>
      <el-main>
        <router-view v-slot="{ Component }">
          <keep-alive exclude="charge_on">
            <component :is="Component" />
          </keep-alive>
        </router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';
import { clearLoginInfo, getUserInfo } from '@/js/public'
import elMenu from '@/public/el-menu/el-menu.vue'

export default {
  components: {
    elMenu
  },
  data () {
    //这里存放数据
    return {
      el_menu_item: [
        { name: '报修中心', index: '/userHome/user_repairCenter' },
        { name: '报修记录', index: '/userHome/user_repairRecord' },
      ],
    }
  }
}
</script>